avoid left shifting into a sign bit
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 18 Feb 2016 14:07:59 +0000 (15:07 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 18 Feb 2016 14:07:59 +0000 (15:07 +0100)
commit035a4e9ae4d7869a512772e986debea752f85b28
treed25eefb19541aa68910fcc42adf357e53a290bf6
parentd9b7ef209a733220958123335594324e6dc115a3
avoid left shifting into a sign bit

Clang 3.8 notices, and objects because it is undefined behaviour.

"error: shifting a negative signed value is undefined [-Werror,-Wshift-negative-value]"

Use unsigned constants rather than signed ones.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Feng Wu <feng.wu@intel.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/common/page_alloc.c
xen/drivers/passthrough/vtd/x86/ats.c